package com.spica.spicaschool.persistence

import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import com.spica.spicaschool.bean.SportMotionRecord
import com.spica.spicaschool.bean.User
import com.spica.spicaschool.bean.news.News
import com.spica.spicaschool.persistence.dao.NewsDao
import com.spica.spicaschool.persistence.dao.SportMotionRecordDao
import com.spica.spicaschool.persistence.dao.UserDao


@Database(entities = [User::class,News::class,SportMotionRecord::class], version = 6, exportSchema = true)
@TypeConverters(value = [TypeUserConverter::class])
abstract class AppDatabase : RoomDatabase() {
    abstract fun userDao(): UserDao

    abstract fun newsDao(): NewsDao

    abstract fun sportMotionRecordDao(): SportMotionRecordDao
}